﻿using FluentValidation;

namespace WYT.Ord.Application.Contracts.Dtos.ShopCart.DtoValidators
{
    /// <summary>
    /// 购物车添加商品DTO验证
    /// </summary>
    public class ProductAddDtoValidator : AbstractValidator<ProductAddDto>
    {
        /// <summary>
        /// 
        /// </summary>
        public ProductAddDtoValidator()
        {
            RuleFor(x => x.GoodsId).NotEmpty();
            RuleFor(x => x.SizeId).NotEmpty();
            RuleFor(x => x.Count).NotEmpty();
        }
    }
}
